home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000122_visagih@mtn.co.ug_Wed Feb 25 10:17:31 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  988b

  1. Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
  2. From: visagih@mtn.co.ug (Hannes)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: How to check if kermit script already running
  5. Date: 25 Feb 2004 01:00:01 -0800
  6. Organization: http://groups.google.com
  7. Lines: 14
  8. Message-ID: <95d20fb2.0402250100.5773d0f2@posting.google.com>
  9. NNTP-Posting-Host: 212.136.56.8
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Trace: posting.google.com 1077699601 15773 127.0.0.1 (25 Feb 2004 09:00:01 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Wed, 25 Feb 2004 09:00:01 +0000 (UTC)
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14826
  16.  
  17. Hi all
  18.  
  19. How to check if kermit script already running ?.  
  20.  
  21. in ksh 
  22. N=`ps -ef | grep "scriptname" | grep -v grep | wc -l`
  23. if [ N -gt 0 ]; then
  24.    echo "Kermit script already running
  25.    exit
  26. fi
  27.  
  28. Ho to do this in a kermit script ?
  29.  
  30. Thanks
  31.